package com.ruoyi.system.service;

import com.ruoyi.system.domain.PSuggest;
import com.ruoyi.system.domain.vo.PSuggestVo;
import com.ruoyi.system.domain.bo.PSuggestBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 意见反馈Service接口
 *
 * @author ruoyi
 * @date 2022-07-12
 */
public interface IPSuggestService {

    /**
     * 查询意见反馈
     */
    PSuggestVo queryById(Long id);

    /**
     * 查询意见反馈列表
     */
    TableDataInfo<PSuggest> queryPageList(PSuggest bo, PageQuery pageQuery);

    /**
     * 查询意见反馈列表
     */
    List<PSuggestVo> queryList(PSuggestBo bo);

    /**
     * 修改意见反馈
     */
    Boolean insertByBo(PSuggestBo bo);

    /**
     * 修改意见反馈
     */
    Boolean updateByBo(PSuggestBo bo);

    /**
     * 校验并批量删除意见反馈信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
